from django.contrib import admin
from django.urls import path,include
from .views import *
from rest_framework.routers import DefaultRouter
from rest_framework_simplejwt.views import TokenObtainPairView
urlpatterns = [
    path('verification/<str:func>/<uuid:uuid>/',IndexView.as_view()),
    # path('verification/register/<uuid:uuid>/',IndexView.as_view()),
    # path('verification/<uuid:uuid>/',IndexView.as_view()),

    # TokenObtainPairView ==》 登录的校验  用户和密码的操作===>token
    # path("login/",TokenObtainPairView.as_view()),
    path("login/",MyTokenTokenObtainPairView.as_view()),

]

router = DefaultRouter()
router.register('users', UserViewSet)
router.register('area', AreaViewSet)
router.register('address', AddressViewSet)
urlpatterns += router.urls